import { http } from "../utils/http";

// 登陆
export const login = (data:object) => {
  return http.request("post", "/login", data);
};

// 更新Token
export const refreshToken = (data:object) => {
  return http.request("post", "/refreshToken",data);
};

// 退出登陆
export const logout = () => {
  return http.request("post", "/logout");
};